<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>SystemSharp: FunctionalComponents.cs Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">SystemSharp
   &#160;<span id="projectnumber">0.3</span>
   </div>
   <div id="projectbrief">A system-level modeling framework for designing real-time embedded systems</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Packages</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_functional_components_8cs_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Properties</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Events</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">FunctionalComponents.cs</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_functional_components_8cs.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="keyword">using</span> System;</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="keyword">using</span> System.Collections.Generic;</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="keyword">using</span> System.Diagnostics;</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="keyword">using</span> System.Diagnostics.Contracts;</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="keyword">using</span> System.Linq;</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="keyword">using</span> SystemSharp.Assembler;</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="keyword">using</span> SystemSharp.Collections;</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="keyword">using</span> SystemSharp.Components.Transactions;</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="keyword">using</span> SystemSharp.DataTypes;</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="keyword">using</span> SystemSharp.Meta;</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="keyword">using</span> SystemSharp.Synthesis;</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="keyword">using</span> SystemSharp.SysDOM;</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;</div>
<div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="namespace_system_sharp_1_1_components_1_1_f_u.html">   33</a></span>&#160;<span class="keyword">namespace </span>SystemSharp.Components.FU</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;{</div>
<div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="interface_system_sharp_1_1_components_1_1_f_u_1_1_i_x_i_l_mapping.html">   38</a></span>&#160;    <span class="keyword">public</span> <span class="keyword">interface </span><a class="code" href="interface_system_sharp_1_1_components_1_1_f_u_1_1_i_x_i_l_mapping.html">IXILMapping</a></div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;    {</div>
<div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="interface_system_sharp_1_1_components_1_1_f_u_1_1_i_x_i_l_mapping.html#a19cbddeec323d92f0441826d0ea83c1c">   43</a></span>&#160;        <span class="keywordtype">string</span> Description { <span class="keyword">get</span>; }</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;</div>
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="interface_system_sharp_1_1_components_1_1_f_u_1_1_i_x_i_l_mapping.html#a69678b1657352a35f930d6088870d8f8">   48</a></span>&#160;        <a class="code" href="interface_system_sharp_1_1_components_1_1_transactions_1_1_i_transaction_site.html">ITransactionSite</a> TASite { <span class="keyword">get</span>; }</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;</div>
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="interface_system_sharp_1_1_components_1_1_f_u_1_1_i_x_i_l_mapping.html#a324711588df999a31106eeb008b5af16">   53</a></span>&#160;        <a class="code" href="namespace_system_sharp_1_1_components_1_1_f_u.html#afd158cd4625a9673e1404e27e7ffdb23">EMappingKind</a> ResourceKind { <span class="keyword">get</span>; }</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;</div>
<div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="interface_system_sharp_1_1_components_1_1_f_u_1_1_i_x_i_l_mapping.html#a224a3956bb8f4eef5028e4d19bc0d086">   60</a></span>&#160;        <span class="keywordtype">int</span> InitiationInterval { <span class="keyword">get</span>; }</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;</div>
<div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="interface_system_sharp_1_1_components_1_1_f_u_1_1_i_x_i_l_mapping.html#a8de97277b3192af31d9cb2cee6ae1a3e">   67</a></span>&#160;        <span class="keywordtype">int</span> Latency { <span class="keyword">get</span>; }</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;        IEnumerable&lt;TAVerb&gt; Realize(</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;            <a class="code" href="interface_system_sharp_1_1_components_1_1_i_signal_source.html">ISignalSource&lt;StdLogicVector&gt;</a>[] operands,</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;            ISignalSink&lt;StdLogicVector&gt;[] results);</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    }</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;</div>
<div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_f_u_1_1_default_x_i_l_mapping.html">   83</a></span>&#160;    <span class="keyword">public</span> <span class="keyword">abstract</span> <span class="keyword">class </span><a class="code" href="class_system_sharp_1_1_components_1_1_f_u_1_1_default_x_i_l_mapping.html">DefaultXILMapping</a> : <a class="code" href="interface_system_sharp_1_1_components_1_1_f_u_1_1_i_x_i_l_mapping.html">IXILMapping</a></div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;    {</div>
<div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_f_u_1_1_default_x_i_l_mapping.html#a0b5e9df9d80a2921b813a7d3da561463">   85</a></span>&#160;        <span class="keyword">public</span> <a class="code" href="interface_system_sharp_1_1_components_1_1_transactions_1_1_i_transaction_site.html">ITransactionSite</a> TASite { <span class="keyword">get</span>; <span class="keyword">private</span> set; }</div>
<div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_f_u_1_1_default_x_i_l_mapping.html#a124f4b2bbb4867d9b3de95079a94cc46">   86</a></span>&#160;        <span class="keyword">public</span> <a class="code" href="namespace_system_sharp_1_1_components_1_1_f_u.html#afd158cd4625a9673e1404e27e7ffdb23">EMappingKind</a> ResourceKind { <span class="keyword">get</span>; <span class="keyword">private</span> set; }</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;        <span class="keyword">private</span> <span class="keywordtype">bool</span> _inited;</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;        <span class="keyword">private</span> <span class="keywordtype">int</span> _ii;</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;        <span class="keyword">public</span> <span class="keyword">virtual</span> <span class="keywordtype">int</span> InitiationInterval</div>
<div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_f_u_1_1_default_x_i_l_mapping.html#a24c19dc4b0aa519e5cf5512776a44773">   91</a></span>&#160;        {</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;            <span class="keyword">get</span></div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;            {</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;                <span class="keywordflow">if</span> (!_inited)</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;                    Initialize();</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;                <span class="keywordflow">return</span> _ii;</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;            }</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;        }</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;        <span class="keyword">private</span> <span class="keywordtype">int</span> _lat;</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;        <span class="keyword">public</span> <span class="keyword">virtual</span> <span class="keywordtype">int</span> Latency</div>
<div class="line"><a name="l00102"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_f_u_1_1_default_x_i_l_mapping.html#af9699a2266cc73cbcc5b705c1e641517">  102</a></span>&#160;        {</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;            <span class="keyword">get</span></div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;            {</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;                <span class="keywordflow">if</span> (!_inited)</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;                    Initialize();</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;                <span class="keywordflow">return</span> _lat;</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;            }</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;        }</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;        <span class="keyword">public</span> <span class="keyword">abstract</span> IEnumerable&lt;TAVerb&gt; Realize(<a class="code" href="interface_system_sharp_1_1_components_1_1_i_signal_source.html">ISignalSource&lt;StdLogicVector&gt;</a>[] operands, ISignalSink&lt;StdLogicVector&gt;[] results);</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;        <span class="keyword">protected</span> <span class="keyword">abstract</span> IEnumerable&lt;TAVerb&gt; RealizeDefault();</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;</div>
<div class="line"><a name="l00129"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_f_u_1_1_default_x_i_l_mapping.html#aeb80cd0dd4841f55858ec85be4be74f3">  129</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">abstract</span> <span class="keywordtype">string</span> Description { <span class="keyword">get</span>; }</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;</div>
<div class="line"><a name="l00136"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_f_u_1_1_default_x_i_l_mapping.html#a34b6d39b6998d2a51d2a5062f7fac963">  136</a></span>&#160;        <span class="keyword">public</span> <a class="code" href="class_system_sharp_1_1_components_1_1_f_u_1_1_default_x_i_l_mapping.html#a34b6d39b6998d2a51d2a5062f7fac963">DefaultXILMapping</a>(<a class="code" href="interface_system_sharp_1_1_components_1_1_transactions_1_1_i_transaction_site.html">ITransactionSite</a> taSite, <a class="code" href="namespace_system_sharp_1_1_components_1_1_f_u.html#afd158cd4625a9673e1404e27e7ffdb23">EMappingKind</a> resourceKind)</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;        {</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;            TASite = taSite;</div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;            ResourceKind = resourceKind;</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;        }</div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> Initialize()</div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;        {</div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;            Debug.Assert(!_inited);</div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;            IEnumerable&lt;TAVerb&gt; rdef = RealizeDefault();</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;            <a class="code" href="class_system_sharp_1_1_components_1_1_transactions_1_1_t_a_verb.html">TAVerb</a> last = null;</div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;            <span class="keywordflow">foreach</span> (<a class="code" href="class_system_sharp_1_1_components_1_1_transactions_1_1_t_a_verb.html">TAVerb</a> verb <span class="keywordflow">in</span> rdef)</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;            {</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;                <span class="keywordflow">if</span> (verb.<a class="code" href="class_system_sharp_1_1_components_1_1_transactions_1_1_t_a_verb.html#a37c86cc2a7cdc9bd8ddc3b3be0c669c0">TMode</a> == <a class="code" href="namespace_system_sharp_1_1_components_1_1_transactions.html#a37047fc12d96eef7c393beb3705ad17c">ETVMode</a>.Locked)</div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;                    ++_ii;</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;                ++_lat;</div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;                last = verb;</div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;            }</div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;            <span class="keywordflow">if</span> (last != null)</div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;                --_lat;</div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;            _inited = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;        }</div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;    }</div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;</div>
<div class="line"><a name="l00163"></a><span class="lineno"><a class="line" href="namespace_system_sharp_1_1_components_1_1_f_u.html#afd158cd4625a9673e1404e27e7ffdb23">  163</a></span>&#160;    <span class="keyword">public</span> <span class="keyword">enum</span> <a class="code" href="namespace_system_sharp_1_1_components_1_1_f_u.html#afd158cd4625a9673e1404e27e7ffdb23">EMappingKind</a></div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;    {</div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;        <a class="code" href="namespace_system_sharp_1_1_components_1_1_f_u.html#afd158cd4625a9673e1404e27e7ffdb23a818708e5fe43332498f1defbe3ae6110">ExclusiveResource</a>,</div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;</div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;        <a class="code" href="namespace_system_sharp_1_1_components_1_1_f_u.html#afd158cd4625a9673e1404e27e7ffdb23a39ddf53bf99679669f62f9320f13ec2a">ReplicatableResource</a>,</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;</div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;        <a class="code" href="namespace_system_sharp_1_1_components_1_1_f_u.html#afd158cd4625a9673e1404e27e7ffdb23a8fa8fc043b38829280bb9138a6988e5f">LightweightResource</a></div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;    }</div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;</div>
<div class="line"><a name="l00184"></a><span class="lineno"><a class="line" href="interface_system_sharp_1_1_components_1_1_f_u_1_1_i_x_i_l_mapper.html">  184</a></span>&#160;    <span class="keyword">public</span> <span class="keyword">interface </span><a class="code" href="interface_system_sharp_1_1_components_1_1_f_u_1_1_i_x_i_l_mapper.html">IXILMapper</a></div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;    {</div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;        IEnumerable&lt;XILInstr&gt; GetSupportedInstructions();</div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;</div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;        IEnumerable&lt;IXILMapping&gt; TryMap(<a class="code" href="interface_system_sharp_1_1_components_1_1_transactions_1_1_i_transaction_site.html">ITransactionSite</a> taSite, <a class="code" href="class_system_sharp_1_1_assembler_1_1_x_i_l_instr.html">XILInstr</a> instr, <a class="code" href="class_system_sharp_1_1_meta_1_1_type_descriptor.html">TypeDescriptor</a>[] operandTypes, <a class="code" href="class_system_sharp_1_1_meta_1_1_type_descriptor.html">TypeDescriptor</a>[] resultTypes);</div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;</div>
<div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;        <a class="code" href="interface_system_sharp_1_1_components_1_1_f_u_1_1_i_x_i_l_mapping.html">IXILMapping</a> TryAllocate(<a class="code" href="class_system_sharp_1_1_components_1_1_component.html">Component</a> host, <a class="code" href="class_system_sharp_1_1_assembler_1_1_x_i_l_instr.html">XILInstr</a> instr, <a class="code" href="class_system_sharp_1_1_meta_1_1_type_descriptor.html">TypeDescriptor</a>[] operandTypes, <a class="code" href="class_system_sharp_1_1_meta_1_1_type_descriptor.html">TypeDescriptor</a>[] resultTypes, <a class="code" href="interface_system_sharp_1_1_synthesis_1_1_i_project.html">IProject</a> targetProject);</div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;    }</div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;</div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;    [AttributeUsage(AttributeTargets.Class, AllowMultiple=<span class="keyword">false</span>, Inherited=<span class="keyword">true</span>)]</div>
<div class="line"><a name="l00223"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_f_u_1_1_declare_x_i_l_mapper.html">  223</a></span>&#160;    <span class="keyword">public</span> <span class="keyword">class </span><a class="code" href="class_system_sharp_1_1_components_1_1_f_u_1_1_declare_x_i_l_mapper.html">DeclareXILMapper</a> : Attribute</div>
<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;    {</div>
<div class="line"><a name="l00225"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_f_u_1_1_declare_x_i_l_mapper.html#ac5a1da001f0ebcc4f2c56f7076357fb5">  225</a></span>&#160;        <span class="keyword">public</span> Type XILMapperType { <span class="keyword">get</span>; <span class="keyword">private</span> set; }</div>
<div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;</div>
<div class="line"><a name="l00232"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_f_u_1_1_declare_x_i_l_mapper.html#a1649dcebb25deed4a724e18f4ce419eb">  232</a></span>&#160;        <span class="keyword">public</span> <a class="code" href="class_system_sharp_1_1_components_1_1_f_u_1_1_declare_x_i_l_mapper.html#a1649dcebb25deed4a724e18f4ce419eb">DeclareXILMapper</a>(Type xilMapperType)</div>
<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;        {</div>
<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;            Contract.Requires&lt;ArgumentNullException&gt;(xilMapperType != null, <span class="stringliteral">&quot;xilMapperType&quot;</span>);</div>
<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;            Contract.Requires&lt;ArgumentException&gt;(typeof(<a class="code" href="interface_system_sharp_1_1_components_1_1_f_u_1_1_i_x_i_l_mapper.html">IXILMapper</a>).IsAssignableFrom(xilMapperType),</div>
<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;                <span class="stringliteral">&quot;Specified mapper type must implement IXILMapper.&quot;</span>);</div>
<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;            Contract.Requires&lt;ArgumentException&gt;(xilMapperType.GetConstructor(<span class="keyword">new</span> Type[0]) != null,</div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;                <span class="stringliteral">&quot;Specified mapper type must provide a default public constructor.&quot;</span>);</div>
<div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;</div>
<div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;            XILMapperType = xilMapperType;</div>
<div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;        }</div>
<div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;</div>
<div class="line"><a name="l00243"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_f_u_1_1_declare_x_i_l_mapper.html#ad130ab58f5abae9ac9f005ba7105d70e">  243</a></span>&#160;        <span class="keyword">public</span> <a class="code" href="interface_system_sharp_1_1_components_1_1_f_u_1_1_i_x_i_l_mapper.html">IXILMapper</a> <a class="code" href="class_system_sharp_1_1_components_1_1_f_u_1_1_declare_x_i_l_mapper.html#ad130ab58f5abae9ac9f005ba7105d70e">CreateMapper</a>()</div>
<div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;        {</div>
<div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;            <span class="keywordflow">return</span> (<a class="code" href="interface_system_sharp_1_1_components_1_1_f_u_1_1_i_x_i_l_mapper.html">IXILMapper</a>)Activator.CreateInstance(XILMapperType);</div>
<div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;        }</div>
<div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;    }</div>
<div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;</div>
<div class="line"><a name="l00253"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_f_u_1_1_functional_unit.html">  253</a></span>&#160;    <span class="keyword">public</span> <span class="keyword">abstract</span> <span class="keyword">class </span><a class="code" href="class_system_sharp_1_1_components_1_1_f_u_1_1_functional_unit.html">FunctionalUnit</a> : <a class="code" href="class_system_sharp_1_1_components_1_1_component.html">Component</a></div>
<div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;    {</div>
<div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;        <span class="keyword">public</span> <span class="keyword">virtual</span> <span class="keywordtype">string</span> DisplayName</div>
<div class="line"><a name="l00259"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_f_u_1_1_functional_unit.html#aab3989bc285f56426e117764f728ab41">  259</a></span>&#160;        {</div>
<div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;            <span class="keyword">get</span> { <span class="keywordflow">return</span> GetType().Name; }</div>
<div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;        }</div>
<div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;    }</div>
<div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;</div>
<div class="line"><a name="l00268"></a><span class="lineno"><a class="line" href="interface_system_sharp_1_1_components_1_1_f_u_1_1_i_supports_diagnostic_output.html">  268</a></span>&#160;    <span class="keyword">public</span> <span class="keyword">interface </span><a class="code" href="interface_system_sharp_1_1_components_1_1_f_u_1_1_i_supports_diagnostic_output.html">ISupportsDiagnosticOutput</a></div>
<div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;    {</div>
<div class="line"><a name="l00273"></a><span class="lineno"><a class="line" href="interface_system_sharp_1_1_components_1_1_f_u_1_1_i_supports_diagnostic_output.html#aeb462e3f006cbadbb81b25510df6427f">  273</a></span>&#160;        <span class="keywordtype">bool</span> EnableDiagnostics { <span class="keyword">get</span>; set; }</div>
<div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;    }</div>
<div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;}</div>
<div class="ttc" id="namespace_system_sharp_1_1_components_1_1_transactions_html_a37047fc12d96eef7c393beb3705ad17c"><div class="ttname"><a href="namespace_system_sharp_1_1_components_1_1_transactions.html#a37047fc12d96eef7c393beb3705ad17c">SystemSharp.Components.Transactions.ETVMode</a></div><div class="ttdeci">ETVMode</div><div class="ttdoc">The mode of a transaction verb </div><div class="ttdef"><b>Definition:</b> <a href="_transactions_8cs_source.html#l00033">Transactions.cs:33</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_f_u_1_1_default_x_i_l_mapping_html_a34b6d39b6998d2a51d2a5062f7fac963"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_f_u_1_1_default_x_i_l_mapping.html#a34b6d39b6998d2a51d2a5062f7fac963">SystemSharp.Components.FU.DefaultXILMapping.DefaultXILMapping</a></div><div class="ttdeci">DefaultXILMapping(ITransactionSite taSite, EMappingKind resourceKind)</div><div class="ttdoc">Constructs an instance. </div><div class="ttdef"><b>Definition:</b> <a href="_functional_components_8cs_source.html#l00136">FunctionalComponents.cs:136</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_transactions_1_1_t_a_verb_html_a37c86cc2a7cdc9bd8ddc3b3be0c669c0"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_transactions_1_1_t_a_verb.html#a37c86cc2a7cdc9bd8ddc3b3be0c669c0">SystemSharp.Components.Transactions.TAVerb.TMode</a></div><div class="ttdeci">ETVMode TMode</div><div class="ttdoc">Mode of this verb </div><div class="ttdef"><b>Definition:</b> <a href="_transactions_8cs_source.html#l00071">Transactions.cs:71</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_transactions_1_1_t_a_verb_html"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_transactions_1_1_t_a_verb.html">SystemSharp.Components.Transactions.TAVerb</a></div><div class="ttdoc">A transaction verb is the base element of a clocked transaction. It describes the register transfers ...</div><div class="ttdef"><b>Definition:</b> <a href="_transactions_8cs_source.html#l00050">Transactions.cs:50</a></div></div>
<div class="ttc" id="namespace_system_sharp_1_1_components_1_1_f_u_html_afd158cd4625a9673e1404e27e7ffdb23a39ddf53bf99679669f62f9320f13ec2a"><div class="ttname"><a href="namespace_system_sharp_1_1_components_1_1_f_u.html#afd158cd4625a9673e1404e27e7ffdb23a39ddf53bf99679669f62f9320f13ec2a">SystemSharp.Components.FU.ReplicatableResource</a></div><div class="ttdoc">A hardware functional unit which can be cloned in order to achieve more instruction-level parallelism...</div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_f_u_1_1_declare_x_i_l_mapper_html_ad130ab58f5abae9ac9f005ba7105d70e"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_f_u_1_1_declare_x_i_l_mapper.html#ad130ab58f5abae9ac9f005ba7105d70e">SystemSharp.Components.FU.DeclareXILMapper.CreateMapper</a></div><div class="ttdeci">IXILMapper CreateMapper()</div><div class="ttdef"><b>Definition:</b> <a href="_functional_components_8cs_source.html#l00243">FunctionalComponents.cs:243</a></div></div>
<div class="ttc" id="interface_system_sharp_1_1_components_1_1_f_u_1_1_i_x_i_l_mapping_html"><div class="ttname"><a href="interface_system_sharp_1_1_components_1_1_f_u_1_1_i_x_i_l_mapping.html">SystemSharp.Components.FU.IXILMapping</a></div><div class="ttdoc">Describes a mapping of a XIL instruction to a hardware functional unit, represented by a transaction ...</div><div class="ttdef"><b>Definition:</b> <a href="_functional_components_8cs_source.html#l00038">FunctionalComponents.cs:38</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_f_u_1_1_functional_unit_html"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_f_u_1_1_functional_unit.html">SystemSharp.Components.FU.FunctionalUnit</a></div><div class="ttdoc">Base class for implementing hardware functional units. However, it is not required that you implement...</div><div class="ttdef"><b>Definition:</b> <a href="_functional_components_8cs_source.html#l00253">FunctionalComponents.cs:253</a></div></div>
<div class="ttc" id="interface_system_sharp_1_1_components_1_1_transactions_1_1_i_transaction_site_html"><div class="ttname"><a href="interface_system_sharp_1_1_components_1_1_transactions_1_1_i_transaction_site.html">SystemSharp.Components.Transactions.ITransactionSite</a></div><div class="ttdoc">General transaction site interface </div><div class="ttdef"><b>Definition:</b> <a href="_transactions_8cs_source.html#l00195">Transactions.cs:195</a></div></div>
<div class="ttc" id="namespace_system_sharp_1_1_components_1_1_f_u_html_afd158cd4625a9673e1404e27e7ffdb23"><div class="ttname"><a href="namespace_system_sharp_1_1_components_1_1_f_u.html#afd158cd4625a9673e1404e27e7ffdb23">SystemSharp.Components.FU.EMappingKind</a></div><div class="ttdeci">EMappingKind</div><div class="ttdoc">Provides a classification of hardware resources </div><div class="ttdef"><b>Definition:</b> <a href="_functional_components_8cs_source.html#l00163">FunctionalComponents.cs:163</a></div></div>
<div class="ttc" id="interface_system_sharp_1_1_components_1_1_i_signal_source_html"><div class="ttname"><a href="interface_system_sharp_1_1_components_1_1_i_signal_source.html">SystemSharp.Components.ISignalSource</a></div><div class="ttdoc">A signal source is a &quot;more flexible&quot; signal. It has a sensitivity, a function which provides the curr...</div><div class="ttdef"><b>Definition:</b> <a href="_process_core_8cs_source.html#l00096">ProcessCore.cs:96</a></div></div>
<div class="ttc" id="interface_system_sharp_1_1_components_1_1_f_u_1_1_i_x_i_l_mapper_html"><div class="ttname"><a href="interface_system_sharp_1_1_components_1_1_f_u_1_1_i_x_i_l_mapper.html">SystemSharp.Components.FU.IXILMapper</a></div><div class="ttdoc">Describes a service which maps XIL instructions to hardware functional units </div><div class="ttdef"><b>Definition:</b> <a href="_functional_components_8cs_source.html#l00184">FunctionalComponents.cs:184</a></div></div>
<div class="ttc" id="namespace_system_sharp_1_1_components_1_1_f_u_html_afd158cd4625a9673e1404e27e7ffdb23a8fa8fc043b38829280bb9138a6988e5f"><div class="ttname"><a href="namespace_system_sharp_1_1_components_1_1_f_u.html#afd158cd4625a9673e1404e27e7ffdb23a8fa8fc043b38829280bb9138a6988e5f">SystemSharp.Components.FU.LightweightResource</a></div><div class="ttdoc">A trivial hardware functional unit which should be cloned for each assigned instruction rather than s...</div></div>
<div class="ttc" id="class_system_sharp_1_1_meta_1_1_type_descriptor_html"><div class="ttname"><a href="class_system_sharp_1_1_meta_1_1_type_descriptor.html">SystemSharp.Meta.TypeDescriptor</a></div><div class="ttdoc">Describes a type. </div><div class="ttdef"><b>Definition:</b> <a href="_type_descriptor_8cs_source.html#l00120">TypeDescriptor.cs:120</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_f_u_1_1_declare_x_i_l_mapper_html"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_f_u_1_1_declare_x_i_l_mapper.html">SystemSharp.Components.FU.DeclareXILMapper</a></div><div class="ttdoc">This attribute declares a XIL mapper for the hardware functional unit implementation it is attached t...</div><div class="ttdef"><b>Definition:</b> <a href="_functional_components_8cs_source.html#l00223">FunctionalComponents.cs:223</a></div></div>
<div class="ttc" id="interface_system_sharp_1_1_synthesis_1_1_i_project_html"><div class="ttname"><a href="interface_system_sharp_1_1_synthesis_1_1_i_project.html">SystemSharp.Synthesis.IProject</a></div><div class="ttdoc">Interface for project generators. </div><div class="ttdef"><b>Definition:</b> <a href="_synthesis_8cs_source.html#l00045">Synthesis.cs:45</a></div></div>
<div class="ttc" id="interface_system_sharp_1_1_components_1_1_f_u_1_1_i_supports_diagnostic_output_html"><div class="ttname"><a href="interface_system_sharp_1_1_components_1_1_f_u_1_1_i_supports_diagnostic_output.html">SystemSharp.Components.FU.ISupportsDiagnosticOutput</a></div><div class="ttdoc">Marker interface for hardware functional units supporting an optional &quot;verbose mode&quot;, i.e. producing diagnostic output during runtime. </div><div class="ttdef"><b>Definition:</b> <a href="_functional_components_8cs_source.html#l00268">FunctionalComponents.cs:268</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_f_u_1_1_declare_x_i_l_mapper_html_a1649dcebb25deed4a724e18f4ce419eb"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_f_u_1_1_declare_x_i_l_mapper.html#a1649dcebb25deed4a724e18f4ce419eb">SystemSharp.Components.FU.DeclareXILMapper.DeclareXILMapper</a></div><div class="ttdeci">DeclareXILMapper(Type xilMapperType)</div><div class="ttdoc">Constructs the attribute. </div><div class="ttdef"><b>Definition:</b> <a href="_functional_components_8cs_source.html#l00232">FunctionalComponents.cs:232</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_assembler_1_1_x_i_l_instr_html"><div class="ttname"><a href="class_system_sharp_1_1_assembler_1_1_x_i_l_instr.html">SystemSharp.Assembler.XILInstr</a></div><div class="ttdoc">Models a XIL instruction </div><div class="ttdef"><b>Definition:</b> <a href="_asm_core_8cs_source.html#l00040">AsmCore.cs:40</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_f_u_1_1_default_x_i_l_mapping_html"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_f_u_1_1_default_x_i_l_mapping.html">SystemSharp.Components.FU.DefaultXILMapping</a></div><div class="ttdoc">Provides an abstract default implementation of IXILMapping. </div><div class="ttdef"><b>Definition:</b> <a href="_functional_components_8cs_source.html#l00083">FunctionalComponents.cs:83</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_component_html"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_component.html">SystemSharp.Components.Component</a></div><div class="ttdoc">The abstract base class for defining components. </div><div class="ttdef"><b>Definition:</b> <a href="_component_8cs_source.html#l00038">Component.cs:38</a></div></div>
<div class="ttc" id="namespace_system_sharp_1_1_components_1_1_f_u_html_afd158cd4625a9673e1404e27e7ffdb23a818708e5fe43332498f1defbe3ae6110"><div class="ttname"><a href="namespace_system_sharp_1_1_components_1_1_f_u.html#afd158cd4625a9673e1404e27e7ffdb23a818708e5fe43332498f1defbe3ae6110">SystemSharp.Components.FU.ExclusiveResource</a></div><div class="ttdoc">A hardware functional unit which needs access to some exclusive hardware resource and therefore canno...</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_bb5e995590685548b7e11478911ee7c3.html">SystemSharp-Google-SVN</a></li><li class="navelem"><a class="el" href="dir_8deefa4467a62b572b52d238d562b104.html">SystemSharp</a></li><li class="navelem"><a class="el" href="dir_0e5a72156f8560bbc472a395da2569d6.html">SystemSharp</a></li><li class="navelem"><a class="el" href="dir_9d3c30b4336bd92c64ccf0aeee487ace.html">SystemSharp</a></li><li class="navelem"><a class="el" href="dir_2796d14d34df7db36a6563efa1efe523.html">Components</a></li><li class="navelem"><a class="el" href="dir_30e3b526a68828528d51b6c8de80b730.html">FU</a></li><li class="navelem"><a class="el" href="_functional_components_8cs.html">FunctionalComponents.cs</a></li>
    <li class="footer">Generated on Thu Dec 26 2013 14:21:39 for SystemSharp by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
  </ul>
</div>
</body>
</html>
